{% if post.commentcount %}
<div class="commentlabel">
    <h4 id='comments'>Comments</h4>
</div>
{% endif %}
{% for comment in comments %}
<div class='{% cycle comment,comment1 %}'>
	<p> {% if comment.authorWebsite %}
	    	<a href="{{comment.authorWebsite}}">
	    {% endif%}
			<b>
			    {%if not comment.author %}{{comment.user}}{%else%}{{comment.author.email}}{% endif %}
			</b> 
	    {% if comment.authorWebsite %}
	    	</a>
	    {% endif%}
	    | <a href="#comment">{{comment.date|date:"Y-m-d H:i"}}</a>
	    {% if comment.userIp %}
	     | IP:{{comment.userIp|slice:":7"}}...<!-- nicky hide ip -->
	    {% endif %} 
	    <div style="float: right;">
	    {% if users.is_current_user_admin %}          
	         <a href='{%url blog.views.delete_comment comment.key%}'><div class="trash"> </div></a>
	    {%else%}
	    	{%if comment.author%}
	    	{%ifequal users.get_current_user comment.author%}
	    		<a href='{%url blog.views.delete_comment comment.key%}'><div class="trash"> </div></a>
	    	{%endifequal%}
	    	{%endif%}
	    {% endif %}
	    </div>
	</p>
	{% autoescape off %}
	<DIV class=post-body>
	    <p>{{comment.content}}</p>
	</DIV>
	{% endautoescape %}
	<DIV class=post-footer>
	        <span class='comment-timestamp'>            
	            {% if comment.lastModifiedDate %}
	            	Edited at {{comment.lastModifiedDate}} by {{comment.lastModifiedBy}}.
	            {% endif %}
	        </span>
	</DIV>
</div>
        <br>
{% endfor %}